<div class="top">
    <div class="sreach-right">
        <div class="top-right-title">
            <a href=""></a><img src="__PIC__/thinkphp-logo.png" alt="">
        </div>
        <div class="sreach">
            <input  class="form-control search-input" value="{:$_GET['keyword']??''}" required type="search" name='keyword' placeholder="搜索帖子" />
        </div>
        <div class="sreach-ul">
            <ul><img src="__PIC__/guanwang.png" alt="">官网</ul>
            <ul><img src="__PIC__/wendang.png" alt="">文档</ul>
            <ul><img src="__PIC__/boke.png" alt="">博客</ul>
            <ul><img src="__PIC__/yunfuwu.png" alt="">云服务</ul>
        </div>
        {if session('uNick') != null}
        <div style="display: flex;flex-direction: column;">
            <img src="__POT__/{:cookie('uImg')}" alt="" style="width: 50px;height: 50px;margin-left: -5px;border-radius: 10px;margin-right: -15px;">
            <a style="margin-left: -5px;color: black;">欢迎你：{:session('uNick')} </a>
        </div>
        {else/}
        <div class="top-right">
            <!-- <div class="puton">
            <a href="{:url('user/login')}"><input type="button" style="color: black;margin-right: 3px;" value="立即登录"></a>
            <a href="{:url('user/reg')}"><input type="button" style="color: black;margin-right: 3px;" value="注册"></a>
            <a href="{:url('user/logout')}"><input type="button" style="color: black;margin-right: 3px;" value="注销"></a>
            </div>  -->
            <div class="puton">
                <a href="{:url('user/login')}">
                    <input type="button" style="color: white;" value="立即登录">
                </a>
                <a href="{:url('user/register')}">
                    <input type="button" style="color: white;" value="注册">
                </a>
                <a href="{:url('user/logout')}">
                    <input type="button" style="color: white;" value="注销">
                </a>
            </div>
        </div>
        {/if}
    </div>
    <!-- </div> -->
</div>